/**
 * 文件管理类
 */

export class File{
    
    constructor(name, path, isDir) {
        this.name = name;
        this.path = path;
        this.dirFile = isDir;
    }

    setName(name) {
        this.name = name;
    }

    setPath(path) {
        this.path = path;
    }

    setIsDir(dirFile) {
        this.dirFile = dirFile;
    }

    toString() {
        return ("name:"+this.name+"  path:"+this.path+"  dirFile:"+this.dirFile);
    }

}